<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>团购王</title>
	<link rel="stylesheet" href="__PUBLIC__/bs/css/bootstrap.min.css">
	<link rel="stylesheet" href="../Public/css/index.css">
	<link rel="stylesheet" href="__PUBLIC__/Validform/style.css">
	<!-- 商品管理->添加商品：图片上传  开始-->
	<link href="__PUBLIC__/bs_fileinput/css/bootstrap.min.css" rel="stylesheet">
	<link href="__PUBLIC__/bs_fileinput/css/fileinput.css" media="all" rel="stylesheet" type="text/css" />
	<!-- 商品管理->添加商品：图片上传  结束-->
	<script src="__PUBLIC__/bs/js/jquery-1.7.2.min.js"></script>
	<!-- <script src="__PUBLIC__/bs/js/jquery.js"></script> -->
	<script src="__PUBLIC__/bs/js/bootstrap.min.js"></script>
	<script src="__PUBLIC__/Validform/Validform_min.js"></script>
	<script src="../Public/js/index.js"></script>
	<script src="../Public/js/common.js"></script>
	<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.4&ak=MYmkCkYyS3ps8H8Lklij7uGbzQxWWIT3"></script><!-- 添加商铺，百度地图API -->
	<script type="text/javascript" src='../Public/js/shop.js'></script>
	<!-- 配置文件 -->
	<script type="text/javascript" src="./Ueditor/ueditor.config.js"></script>
	<!-- 编辑器源码文件 -->
	<script type="text/javascript" src="./Ueditor/ueditor.all.js"></script>

</head>
<body>
	<div class="container">
		<div class="header">
			<div class="logo"><img src="" alt=""></div>
			<div class="right">
			<div class="homemenu">
				<a href="">首页</a>
				<a href="">退出</a>
			</div>
			<div class="menuList">
				<a class="" href="javascript:void(0);">会员管理</a>
				
				<a class="Locality" href="<?php echo U('Locality/index');?>">地区管理</a>
				
				<a class="Category" href="<?php echo U('Category/index');?>">分类管理</a>
				
				<a class="Shop" href="<?php echo U('Shop/index');?>">商铺管理</a>
				
				<a class="Goods" href="<?php echo U('Goods/index');?>">商品管理</a>
				
				<a class="" href="javascript:void(0);">订单管理</a>
				
				<a class="Index" href="<?php echo U('Index/index');?>" style="background: #3B5A79;">站点概要</a>
			</div>

			</div>
		</div>
		<div class="box" >
			<div class="leftMenu">
				<div class="list-group ">
				  <a href="#" class="list-group-item active">
				    会员管理
				  </a>
				  <a href="#" class="list-group-item">查看会员</a>
				  <a href="#" class="list-group-item">添加会员</a>
				</div>
				<div class="list-group Locality">
				  <a href="#" class="list-group-item active">
				   地区管理
				  </a>
				  <a href="<?php echo U('Locality/index');?>" class="list-group-item">查看地区</a>
				  <a href="<?php echo U('Locality/add');?>" class="list-group-item">添加地区</a>
				</div>
				<div class="list-group Category">
				  <a href="#" class="list-group-item active">
				    分类管理
				  </a>
				  <a href="<?php echo U('Category/index');?>" class="list-group-item">查看分类</a>
				  <a href="<?php echo U('Category/add');?>" class="list-group-item">添加分类</a>
				</div>
				<div class="list-group Shop">
				  <a href="#" class="list-group-item active">
				   商铺管理
				  </a>
				  <a href="<?php echo U('Shop/index');?>" class="list-group-item">查看商铺</a>
				  <a href="<?php echo U('Shop/add');?>" class="list-group-item">添加商铺</a>
				</div>
				<div class="list-group Goods">
				  <a href="#" class="list-group-item active">
				   商品管理
				  </a>
				  <a href="<?php echo U('Goods/index');?>" class="list-group-item">查看商品</a>
				  <a href="<?php echo U('Goods/add');?>" class="list-group-item">添加商品</a>
				</div>
				<div class="list-group ">
				  <a href="#" class="list-group-item active">
				   订单管理
				  </a>
				  <a href="#" class="list-group-item">查看地区</a>
				  <a href="#" class="list-group-item">添加地区</a>
				</div>
				<div class="list-group Index">
				  <a href="#" class="list-group-item active" style="display: block;">
				   站点管理
				  </a>
				  <a href="#" class="list-group-item">查看地区</a>
				  <a href="#" class="list-group-item">添加地区</a>
				</div>
			</div>
			
<div class="rightBody">

	<table class="table table-bordered table-hover click-toggle">
		<tr class="titleTr warning">
			<th></th>
			<th>地区名称</th>
			<th>地区排序</th>
			<th>是否显示</th>
			<th>操作</th>
		</tr>
		<?php if(is_array($rows)): $i = 0; $__LIST__ = $rows;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i; if($row['pid'] == 0): ?><tr class="titleTr level_<?php echo ($row['level']); ?> pid_<?php echo ($row['pid']); ?>" cid="<?php echo ($row['lid']); ?>" pid="<?php echo ($row['pid']); ?>" >
		<?php else: ?>
		<tr class="level_<?php echo ($row['level']); ?> pid_<?php echo ($row['pid']); ?>" cid="<?php echo ($row['lid']); ?>" pid="<?php echo ($row['pid']); ?>"><?php endif; ?>
			<td><a href="#" class="aunfold btn btn-default btn-info">+</a></td>
			<td><?php echo ($row['lname']); ?></td>
			<td><?php echo ($row['sort']); ?></td>
			<td><?php echo ($row['display']); ?></td>
			<td><a href="<?php echo U('Locality/edit','','');?>/cid/<?php echo ($row['lid']); ?>" class="btn btn-sm btn-primary">编辑</a> <a href="<?php echo U('Locality/delete','','');?>/cid/<?php echo ($row['lid']); ?>" class="btn btn-sm btn-danger">删除</a></td>
		</tr><?php endforeach; endif; else: echo "" ;endif; ?>
	</table>

</div>


		</div>
	</div>
	<script type="text/javascript">

	$(function(){

		
		//Validform.js表单验证初始化
		$(".registerform").Validform({
				tiptype:3
		});

		// 根据模块名称使相应的顶部导航变色，左侧菜单列表显示
		cls="<?php echo get_url_module();?>";//获取模块名方法，Admin\common\common.php中自定义方法
		$(".menuList ."+cls).css('background','#3B5A79').siblings('a').css('background','#4081C1');
		$(".box .leftMenu ."+cls).show().siblings('div').hide();
		// alert(cls);
	})
	</script>
</body>	

</html>